WindowInsetsCompat
Describes a set of insets for window content.
WindowInsetsCompats are immutable and may be expanded to include more inset types in the future. To adjust insets, use one of the supplied clone methods to obtain a new WindowInsetsCompat instance with the adjusted properties.
Constructors
Types
Functions
Link copied to clipboard
Returns a copy of this WindowInsets with the cutout fully consumed.
Link copied to clipboard
Returns a copy of this WindowInsets with the stable insets fully consumed.
Link copied to clipboard
Returns a copy of this WindowInsets with the system window insets fully consumed.
Link copied to clipboard
Returns the display cutout if there is one.
Link copied to clipboard
Returns the insets a specific set of windows can cause, denoted by the
typeMask
bit mask of Types, regardless of whether that type is currently visible or not.Link copied to clipboard
Returns the mandatory system gesture insets.
Link copied to clipboard
Returns the bottom stable inset in pixels.
Link copied to clipboard
Returns the left stable inset in pixels.
Link copied to clipboard
Returns the right stable inset in pixels.
Link copied to clipboard
Returns the stable insets in pixels.
Link copied to clipboard
Returns the top stable inset in pixels.
Link copied to clipboard
Returns the system gesture insets.
Link copied to clipboard
Returns the bottom system window inset in pixels.
Link copied to clipboard
Returns the left system window inset in pixels.
Link copied to clipboard
Returns the right system window inset in pixels.
Link copied to clipboard
Returns the system window insets in pixels.
Link copied to clipboard
Returns the top system window inset in pixels.
Link copied to clipboard
Returns the tappable element insets.
Link copied to clipboard
Returns true if this WindowInsets has nonzero stable insets.
Link copied to clipboard
Returns true if this WindowInsets has nonzero system window insets.
Link copied to clipboard
Link copied to clipboard
Check if these insets have been fully consumed.
Link copied to clipboard
open fun replaceSystemWindowInsets(left: Int, top: Int, right: Int, bottom: Int): WindowInsetsCompat
Returns a copy of this WindowInsets with selected system window insets replaced with new values.
Link copied to clipboard
Return the source WindowInsets instance used in this WindowInsetsCompat.
Link copied to clipboard
open fun toWindowInsetsCompat(@NonNull insets: WindowInsets, @Nullable view: View): WindowInsetsCompat
Wrap an instance of WindowInsets into a WindowInsetsCompat.